package hsp.admin.app.base.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Schema(description = "用户表")
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("base_user")
public class UserPO extends BasePO {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "账号", example = "admin")
    @NotBlank
    @TableField("username")
    private String username;

    @Schema(description = "密码", example = "123456")
    @NotBlank
    @TableField("password")
    private String password;

    @Schema(description = "状态", example = "1")
    @NotBlank
    @TableField("status")
    private String status;

}
